
read -p "8 16 24 32:" MY_FILE_NAME

mount -t vfat /dev/mmcblk0p1 /mnt/

if [ "x$MY_FILE_NAME" = "x8" ] ; then
    cp /mnt/8bit-logo.bmp /mnt/logo.bmp
elif [ "x$MY_FILE_NAME" = "x16" ] ; then
    cp /mnt/16bit-logo.bmp /mnt/logo.bmp
elif [ "x$MY_FILE_NAME" = "x24" ] ; then
    cp /mnt/24bit-logo.bmp /mnt/logo.bmp
elif [ "x$MY_FILE_NAME" = "x32" ] ; then
    cp /mnt/32bit-logo.bmp /mnt/logo.bmp
elif [ "x$MY_FILE_NAME" = "xn" ] ; then
 echo "$MY_FILE_NAME"
 exit $?
fi

sync

